package com.thb.pay.api.merchant.fallback;

import com.thb.pay.api.merchant.MchQrCodeServiceApi;
import com.thb.pay.api.merchant.vo.req.MchQrCodePageReq;
import com.thb.pay.api.merchant.vo.req.MchQrCodeReq;
import com.thb.pay.api.merchant.vo.resp.MchQrCodeVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class MchQrCodeServiceApiFallbackFactory implements FallbackFactory<MchQrCodeServiceApi> {


    @Override
    public MchQrCodeServiceApi create(Throwable throwable) {
        return new MchQrCodeServiceApi() {
            @Override
            public PageResult<MchQrCodeVo> findPage(MchQrCodePageReq pageReq) {
                return null;
            }

            @Override
            public List<MchQrCodeVo> findAllList() {
                return null;
            }

            @Override
            public MchQrCodeVo getById(Long id) {
                return null;
            }

            @Override
            public void add(MchQrCodeReq mchQrCodeReq) {

            }

            @Override
            public void update(MchQrCodeReq mchQrCodeReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}